package net.sareweb.acab.session;

import net.sareweb.acab.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("commentonsuggestionList")
public class CommentonsuggestionList extends EntityQuery<Commentonsuggestion> {

	private static final String EJBQL = "select commentonsuggestion from Commentonsuggestion commentonsuggestion";

	private static final String[] RESTRICTIONS = { "lower(commentonsuggestion.msg) like lower(concat(#{commentonsuggestionList.commentonsuggestion.msg},'%'))", };

	private Commentonsuggestion commentonsuggestion = new Commentonsuggestion();

	public CommentonsuggestionList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Commentonsuggestion getCommentonsuggestion() {
		return commentonsuggestion;
	}
}
